﻿@using CodeCamp.Models.EventMgmt
@model SiteUserEditViewModel
@{
    if (Model.SiteUserEditModel != null)
    {
        ViewBag.Title = String.Format("Code Camp | Edit User {0}", Model.SiteUserEditModel.FullName);
    }
    else
    {
        ViewBag.Title = "Code Camp | Edit User";
    }
    ViewBag.EventName = "Code Camp";
}

@section headaddon {
<style>
    table
    {
        border-collapse: collapse;
        border: solid 1px;
        margin: 0;
    }
    th
    {
        padding: 4px;
    }
    td 
    {
        padding: 4px;
    }
    td.datetime-nowrap
    {
        white-space:nowrap;
    }
    #content
    {
        width: 900px;
    }
</style>
}

<h2>Edit Site User</h2>

@if (Model.SiteUserEditModel != null)
{
    @Html.Partial("SiteUserEditPartial", Model.SiteUserEditModel)
}

@Html.ActionLink("List", "SiteUsers")
@if (Model.SiteUserEditModel != null)
{
  <text>|</text> @Html.ActionLink("Detail", "SiteUserDetail", new { id = @Model.SiteUserEditModel.SiteUserId })
}
